<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="component/heard :: head"></head>
<body>
<nav th:include="component/nav :: nav"></nav>
<script src="/js/mycard.js"></script>
<div class="container">
    <div class="row">
        <div th:each="f : ${flowlist}" class="col-sm-4">
            <div class="card" style="margin-top: 10px;">
                <div class="card-body">
                    <h5 class="card-title" th:text="${f?.title}">标题</h5>
                    <p class="card-text" th:text="${f?.description}">描述</p>
                    <p class="card-text" th:text="${f?.type}">类型</p>
                    <a th:href="@{'/card/flow/'+${f.id}}" class="link-secondary">编辑</a>
                    <a href="#" th:onclick="'myCard.delCard(\'' + ${f.id} + '\');'" class="link-success">删除</a>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="card " style="margin-top: 10px;">
                <div class="card-body">
                    <a href="/card/flow/0" class="link-primary">创建新流程</a>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>


